package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 就餐对象 meal
 *
 * @author ruoyi
 * @date 2024-12-01
 */
@Data
public class Meal extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 就餐id */
    private Long mealId;

    /** 来客单位 */
    @Excel(name = "来客单位")
    private String org;

    /** 事由 */
    @Excel(name = "事由")
    private String reason;

    /** 来客人数 */
    @Excel(name = "来客人数")
    private Long peopleNum;

    /** 申请人 */
    @Excel(name = "申请人")
    private String applicant;

    /** 就餐日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "就餐日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date mealTime;

    public void setMealId(Long mealId)
    {
        this.mealId = mealId;
    }

    public Long getMealId()
    {
        return mealId;
    }
    public void setOrg(String org)
    {
        this.org = org;
    }

    public String getOrg()
    {
        return org;
    }
    public void setReason(String reason)
    {
        this.reason = reason;
    }

    public String getReason()
    {
        return reason;
    }
    public void setPeopleNum(Long peopleNum)
    {
        this.peopleNum = peopleNum;
    }

    public Long getPeopleNum()
    {
        return peopleNum;
    }
    public void setApplicant(String applicant)
    {
        this.applicant = applicant;
    }

    public String getApplicant()
    {
        return applicant;
    }
    public void setMealTime(Date mealTime)
    {
        this.mealTime = mealTime;
    }

    public Date getMealTime()
    {
        return mealTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("mealId", getMealId())
            .append("org", getOrg())
            .append("reason", getReason())
            .append("peopleNum", getPeopleNum())
            .append("applicant", getApplicant())
            .append("mealTime", getMealTime())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
